#include <fstream>
#include <Poco/Process.h>
#include <Poco/PipeStream.h>
#include <Poco/StreamCopier.h>

#include <kugou/server/http/handler/AddEncodeChannel.h>
#include <kugou/server/encoder/EncoderWorker.h>

using namespace boost;
using namespace kugou::server::http;
using namespace kugou::server::encoder;

namespace kugou
{
namespace server
{
namespace http
{
namespace handler
{

bool AddEncodeChannel::impl_check()
{
	return true;
}

bool AddEncodeChannel::impl_handle()
{
    this->m_el.addEncodeStreamID(*this->m_request.Source_ID);

    this->m_response.Result.reset(new std::string("YES"));

    return true;
}

}
}
}
}
